package com.bestv.search.common.service;

import com.bestv.search.common.dataSource.DataSourceKey;
import com.bestv.search.common.model.Site;
import com.bestv.search.common.util.CommandException;

import java.util.List;

public interface SiteManager {

    Site getSiteById(DataSourceKey key, Long id);

    List<Site> getSites(DataSourceKey key);

    List<Site> getSitesExpHDQ(DataSourceKey key);

    Site saveSite(DataSourceKey key, Site site);

    Site getSiteByName(DataSourceKey key, String name);

    Site getSiteByCode(DataSourceKey key, String code);

    void deleteSite(DataSourceKey key, Long id) throws CommandException;

    List<Site> getSitesByCodes(DataSourceKey key, String[] codes);
}
